﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for DaiLyEntity
/// </summary>
public class DaiLyEntity
{

    private int iddl;
    private string tenDaiLy;
    private string logo;
    private string diaChi;
    private string dienThoai;
    private string fax;
    private string email;
    private string mota;
    public DaiLyEntity()
    { }
    public DaiLyEntity(int iddl, string tenDaiLy, string logo, string diaChi, string dienThoai, string fax, string email, string mota)
    {
        this.iddl = iddl;
        this.tenDaiLy = tenDaiLy;
        this.logo = logo;
        this.diaChi = diaChi;
        this.dienThoai = dienThoai;
        this.fax = fax;
        this.email = email;
        this.mota = mota;
    }
    public int Iddl
    {
        get { return this.iddl; }
        set
        {
            if (value == null)
                throw new Exception("iddl not allow nullvalue.");
            this.iddl = value;
        }
    }
    public string TenDaiLy
    {
        get { return this.tenDaiLy; }
        set
        {
            if (value == null)
                throw new Exception("tenDaiLy not allow nullvalue.");
            this.tenDaiLy = value;
        }
    }
    public string Logo
    {
        get { return this.logo; }
        set { this.logo = value; }
    }
    public string DiaChi
    {
        get { return this.diaChi; }
        set
        {
            if (value == null)
                throw new Exception("diaChi not allow nullvalue.");
            this.diaChi = value;
        }
    }
    public string DienThoai
    {
        get { return this.dienThoai; }
        set
        {
            if (value == null)
                throw new Exception("dienThoai not allow nullvalue.");
            this.dienThoai = value;
        }
    }
    public string Fax
    {
        get { return this.fax; }
        set { this.fax = value; }
    }
    public string Email
    {
        get { return this.email; }
        set
        {
            if (value == null)
                throw new Exception("email not allow nullvalue.");
            this.email = value;
        }
    }
    public string Mota
    {
        get { return this.mota; }
        set
        {
            if (value == null)
                throw new Exception("mota not allow nullvalue.");
            this.mota = value;
        }
    }
    public override string ToString()
    {
        return this.iddl + "; " + this.tenDaiLy + "; " + this.logo + "; " + this.diaChi + "; " + this.dienThoai + "; " + this.fax + "; " + this.email + "; " + this.mota + "; ";
    }
    public override bool Equals(Object obj)
    {
        DaiLyEntity me = (DaiLyEntity)obj;
        bool ret = this.Iddl.Equals(me.Iddl);
        return ret;
    }
    public override int GetHashCode()
    {
        return this.Iddl.GetHashCode();
    }
}